import request from '@/utils/request'

// 查询基本资料管理列表
export function listProject_person(query) {
  return request({
    url: '/business/project_person/list',
    method: 'get',
    params: query
  })
}

// 查询基本资料管理列表
export function select_pms() {
  return request({
    url: '/business/project_person/selectPMs',
    method: 'get'
  })
}

// 通过类型查询人员
export function get_person_by_type(personType) {
  return request({
    url: '/business/project_person/get_person_by_type/'+personType,
    method: 'get'
  })
}


// 查询基本资料管理详细
export function getProject_person(personId) {
  return request({
    url: '/business/project_person/' + personId,
    method: 'get'
  })
}

// 查询基本资料管理详细
export function check_person_name(personName) {
  return request({
    url: '/business/project_person/check_person_name/' + personName,
    method: 'get'
  })
}

// 新增基本资料管理
export function addProject_person(data) {
  return request({
    url: '/business/project_person',
    method: 'post',
    data: data
  })
}

// 修改基本资料管理
export function updateProject_person(data) {
  return request({
    url: '/business/project_person',
    method: 'put',
    data: data
  })
}

// 删除基本资料管理
export function delProject_person(personId) {
  return request({
    url: '/business/project_person/' + personId,
    method: 'delete'
  })
}
